package com.zhongc.advance.order;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 *
 *
 * @Description
 *
 * @Version 1.0
 *
 * @Author zhongc
 *
 * @Email zhong_ch@foxmail.com
 *
 * @History
 *<li>Author: zhongc</li>
 *<li>Date: 2015年7月14日</li>
 *<li>Version: 1.0</li>
 *<li>Content: create</li>
 *
 */
public class UserOrder implements Serializable {

	private static final long serialVersionUID = 9062851371336723820L;

	/** 用户Id */
	@NotBlank(message = "用户Id不能为空")
	private String userId;

	/** 用户名 */
	@NotBlank(message = "用户名不能为空")
	@Length(min = 6, max = 31)
	private String userName;

	/** 真实姓名 */
	private String realName;

	/** 别名 */
	private String alias;

	/** 用户创建时间 */
	@NotNull(message="时间不能为空")
	private Date registTime;

	/** 用户状态 */
	@NotBlank(message = "用户状态不能为空")
	private String status;

	/** 注册来源 */
	@NotBlank(message = "注册来源不能为空")
	private String registFrom;

	/** 用户电话 */
	private String phone;

	/** email */
	@NotBlank(message = "邮箱不能为空")
	@Email(message = "邮箱不合法")
	private String email;

	@NotBlank(message = "密码不能为空")
	private String passWord;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public Date getRegistTime() {
		return registTime;
	}

	public void setRegistTime(Date registTime) {
		this.registTime = registTime;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getRegistFrom() {
		return registFrom;
	}

	public void setRegistFrom(String registFrom) {
		this.registFrom = registFrom;
	}

	@Override
	public String toString() {
		return "UserOrder{" +
				"userId='" + userId + '\'' +
				", userName='" + userName + '\'' +
				", realName='" + realName + '\'' +
				", alias='" + alias + '\'' +
				", registTime=" + registTime +
				", status='" + status + '\'' +
				", registFrom='" + registFrom + '\'' +
				", phone='" + phone + '\'' +
				", email='" + email + '\'' +
				", passWord='" + passWord + '\'' +
				'}';
	}
}